package com.jvyou.subject.domain.convert;

import com.jvyou.subject.domain.entity.SubjectCategoryBo;
import com.jvyou.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 橘柚
 * @since 2024/9/26 19:49
 */
@Mapper
public interface SubjectCategoryBoConverter {

    SubjectCategoryBoConverter INSTANCE = Mappers.getMapper(SubjectCategoryBoConverter.class);

    SubjectCategory boToEntity(SubjectCategoryBo subjectCategoryBo);

    List<SubjectCategoryBo> entityToBo(List<SubjectCategory> subjectCategories);
}
